package com.ym.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.Index;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

@Data
@Table
@TableComment("域名DNS历史表")
public class DmDomainDnsHistory {

    @TableId(type = IdType.ASSIGN_ID)
    @IsKey
    @Column
    @ColumnComment("主键ID")
    private Long id;

    @Column
    @ColumnComment("客户ID")
    private Integer customerId;

    @Column
    @ColumnComment("批次操作ID")
    private Long batchOperationId;

    @Column
    @ColumnComment("域名ID")
    @Index
    private Long domainId;

    @Column(length = 255)
    @ColumnComment("域名名称")
    private String domainName;

    @Column(length = 20)
    @ColumnComment("注册商")
    private String registrar;

    @Column
    @ColumnComment("阿里云任务编号")
    private String taskNo;

    @Column(length = 500)
    @ColumnComment("dns地址")
    private String dnsAddress;

    @Column(length = 10)
    @ColumnComment("操作结果")
    private String operationResult;

    @Column(length = 1000)
    @ColumnComment("失败原因")
    private String failReason;

}
